package com.js.rtu.fragment.first;

import android.os.Bundle;
import android.widget.EditText;

import com.js.rtu.R;
import com.js.rtu.base.BaseFragment;
import com.js.rtu.util.SPUtils;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * 蓝牙筛选
 * Created by wz on 2020/4/26.
 */
public class FitterFragment extends BaseFragment {


    @BindView(R.id.edt_name)
    EditText edtName;


    public static FitterFragment newInstance() {
        Bundle args = new Bundle();
        FitterFragment fragment = new FitterFragment();
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_tab_first_fitter;
    }

    @Override
    protected void initView() {


    }

    @Override
    public void onSupportVisible() {
        super.onSupportVisible();
        edtName.setText((String) SPUtils.get(_mActivity, "fitter", ""));
    }



    @OnClick(R.id.btn_ok)
    public void onViewClicked() {
        String fitter = edtName.getText().toString();
//        if (!fitter.isEmpty())
            SPUtils.put(_mActivity, "fitter", fitter);
//        else
//            toastShow("请输入");
    }
}
